package ch.exm.storm.conditions;


public class Null extends OneArgumentCondition {

	public Null(Object argument) {
		super(argument);
	}
	
	public boolean matches(Object object) {
		Object value = evaluteArgumentOn(arguments[0], object);
		return value == null;
	}

	public static Null isNull(Object argument) {
		return new Null(argument);
	}

	@Override
	protected String getConditionKeyword() {
		return " is null";
	}

	@Override
	protected String getInverseConditionKeyword() {
		return " is not null";
	}
}
